package com.shadt.core.util;

import java.io.File;
import java.io.IOException;
import java.util.Date;

public class PriLogUtil {
	private static final String path = Thread.currentThread().getContextClassLoader().getResource("").getPath();

	public static void creatFile() throws IOException{
		File file =new File(path+"privatelog");
		String filen=path+"privatelog//"+DateUtil.dataToStr(new Date(), "yyyyMMdd");
		if  (!file .exists()  && !file .isDirectory()){       
		    file .mkdir();    
		} else {  
			File fileName = new File(filen);
			if(!fileName.exists()){  
			    fileName.createNewFile();  
			}  
		}  
	}
	public static void writeLog(String contnet) throws IOException{
		creatFile();
	}
	public static void main(String[] args) throws IOException {
		PriLogUtil.writeLog(111+"");
	}
	
}
